package com.iotp.entity.organization;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 系统机构实体类
 * @author Assassin
 */
public class Organization implements Serializable {

   /**
	* default SerialVersionUID
	*/
	private static final long serialVersionUID = 1L;

	// Fields

	private Long orgId;// 标识信息-机构Id[主键值]
	private String orgCode;// 标识信息-机构编码
	private Integer orgType;// 标识信息-机构类型
	private Integer orgStatus;// 状态信息-机构数据状态
	private Integer isDel;// 状态信息-是否删除[1-是 | 0-否]
	private Integer orgOrder;// 状态信息-机构排序
	private Integer orgLevel;// 层级信息-机构层级
	private Integer isParent;// 层级信息-是否父级[1-是 | 0-否]
	private Long orgPid;// 层级信息-父级Id[ROOT-0]
	private String orgName;// 基本信息-机构名称
	private String orgAliasName;// 基本信息-机构别名
	private String orgDesc;// 基本信息-机构说明
	private String orgPhone;// 基本信息-机构电话
	private String orgFax;// 基本信息-机构传真
	private String orgWebsite;// 基本信息-机构网址
	private String provinceId;// 位置信息-机构省Id
	private String cityId;// 位置信息-机构市Id
	private String districtId;// 位置信息-机构区Id
	private String orgAddress;// 位置信息-机构地址
	private BigDecimal lng;// 位置信息-机构经度
	private BigDecimal lat;// 位置信息-机构纬度
	private Long orgManagerId;// 管理信息-机构负责人Id
	private String orgManagerName;// 管理信息-机构负责人名称
	private String orgManagerPhone;// 管理信息-机构负责人电话
	private Long createTime;// 时间信息-创建时间
	private Long updateTime;// 时间信息-更新时间[初始化=NULL]
	
	// Extends Field
	private List<Organization> subList;// 机构子集列表
	
	// Empty Constructor
	public Organization() {
		super();
	}
	
	// Full Constructor
	public Organization(Long orgId, String orgCode, Integer orgType, Integer orgStatus, Integer isDel, Integer orgOrder, Integer orgLevel, Integer isParent, Long orgPid, String orgName, String orgAliasName, String orgDesc, String orgPhone, String orgFax, String orgWebsite, String provinceId, String cityId, String districtId, String orgAddress, BigDecimal lng, BigDecimal lat, Long orgManagerId, String orgManagerName, String orgManagerPhone, Long createTime, Long updateTime) {
		this.orgId =  orgId;
		this.orgCode =  orgCode;
		this.orgType =  orgType;
		this.orgStatus =  orgStatus;
		this.isDel =  isDel;
		this.orgOrder =  orgOrder;
		this.orgLevel =  orgLevel;
		this.isParent =  isParent;
		this.orgPid =  orgPid;
		this.orgName =  orgName;
		this.orgAliasName =  orgAliasName;
		this.orgDesc =  orgDesc;
		this.orgPhone =  orgPhone;
		this.orgFax =  orgFax;
		this.orgWebsite =  orgWebsite;
		this.provinceId =  provinceId;
		this.cityId =  cityId;
		this.districtId =  districtId;
		this.orgAddress =  orgAddress;
		this.lng =  lng;
		this.lat =  lat;
		this.orgManagerId =  orgManagerId;
		this.orgManagerName =  orgManagerName;
		this.orgManagerPhone =  orgManagerPhone;
		this.createTime =  createTime;
		this.updateTime =  updateTime;
	}

	// Property accessors

	public Long getOrgId () {
		return this.orgId;
	}
	
	public void setOrgId (Long orgId) {
		this.orgId =  orgId;
	}
	
	public String getOrgCode () {
		return this.orgCode;
	}
	
	public void setOrgCode (String orgCode) {
		this.orgCode =  orgCode;
	}
	
	public Integer getOrgType () {
		return this.orgType;
	}
	
	public void setOrgType (Integer orgType) {
		this.orgType =  orgType;
	}
	
	public Integer getOrgStatus () {
		return this.orgStatus;
	}
	
	public void setOrgStatus (Integer orgStatus) {
		this.orgStatus =  orgStatus;
	}
	
	public Integer getIsDel () {
		return this.isDel;
	}
	
	public void setIsDel (Integer isDel) {
		this.isDel =  isDel;
	}
	
	public Integer getOrgOrder () {
		return this.orgOrder;
	}
	
	public void setOrgOrder (Integer orgOrder) {
		this.orgOrder =  orgOrder;
	}
	
	public Integer getOrgLevel () {
		return this.orgLevel;
	}
	
	public void setOrgLevel (Integer orgLevel) {
		this.orgLevel =  orgLevel;
	}
	
	public Integer getIsParent () {
		return this.isParent;
	}
	
	public void setIsParent (Integer isParent) {
		this.isParent =  isParent;
	}
	
	public Long getOrgPid () {
		return this.orgPid;
	}
	
	public void setOrgPid (Long orgPid) {
		this.orgPid =  orgPid;
	}
	
	public String getOrgName () {
		return this.orgName;
	}
	
	public void setOrgName (String orgName) {
		this.orgName =  orgName;
	}
	
	public String getOrgAliasName () {
		return this.orgAliasName;
	}
	
	public void setOrgAliasName (String orgAliasName) {
		this.orgAliasName =  orgAliasName;
	}
	
	public String getOrgDesc () {
		return this.orgDesc;
	}
	
	public void setOrgDesc (String orgDesc) {
		this.orgDesc =  orgDesc;
	}
	
	public String getOrgPhone () {
		return this.orgPhone;
	}
	
	public void setOrgPhone (String orgPhone) {
		this.orgPhone =  orgPhone;
	}
	
	public String getOrgFax () {
		return this.orgFax;
	}
	
	public void setOrgFax (String orgFax) {
		this.orgFax =  orgFax;
	}
	
	public String getOrgWebsite () {
		return this.orgWebsite;
	}
	
	public void setOrgWebsite (String orgWebsite) {
		this.orgWebsite =  orgWebsite;
	}
	
	public String getProvinceId () {
		return this.provinceId;
	}
	
	public void setProvinceId (String provinceId) {
		this.provinceId =  provinceId;
	}
	
	public String getCityId () {
		return this.cityId;
	}
	
	public void setCityId (String cityId) {
		this.cityId =  cityId;
	}
	
	public String getDistrictId () {
		return this.districtId;
	}
	
	public void setDistrictId (String districtId) {
		this.districtId =  districtId;
	}
	
	public String getOrgAddress () {
		return this.orgAddress;
	}
	
	public void setOrgAddress (String orgAddress) {
		this.orgAddress =  orgAddress;
	}
	
	public BigDecimal getLng () {
		return this.lng;
	}
	
	public void setLng (BigDecimal lng) {
		this.lng =  lng;
	}
	
	public BigDecimal getLat () {
		return this.lat;
	}
	
	public void setLat (BigDecimal lat) {
		this.lat =  lat;
	}
	
	public Long getOrgManagerId () {
		return this.orgManagerId;
	}
	
	public void setOrgManagerId (Long orgManagerId) {
		this.orgManagerId =  orgManagerId;
	}
	
	public String getOrgManagerName () {
		return this.orgManagerName;
	}
	
	public void setOrgManagerName (String orgManagerName) {
		this.orgManagerName =  orgManagerName;
	}
	
	public String getOrgManagerPhone () {
		return this.orgManagerPhone;
	}
	
	public void setOrgManagerPhone (String orgManagerPhone) {
		this.orgManagerPhone =  orgManagerPhone;
	}
	
	public Long getCreateTime () {
		return this.createTime;
	}
	
	public void setCreateTime (Long createTime) {
		this.createTime =  createTime;
	}
	
	public Long getUpdateTime () {
		return this.updateTime;
	}
	
	public void setUpdateTime (Long updateTime) {
		this.updateTime =  updateTime;
	}
	
	public List<Organization> getSubList() {
		return subList;
	}

	public void setSubList(List<Organization> subList) {
		this.subList = subList;
	}

	@Override
	public String toString () {
		StringBuffer entityStirngBuffer = new StringBuffer();
		entityStirngBuffer.append("orgId = " +  this.getOrgId() + "\n");
		entityStirngBuffer.append("orgCode = " +  this.getOrgCode() + "\n");
		entityStirngBuffer.append("orgType = " +  this.getOrgType() + "\n");
		entityStirngBuffer.append("orgStatus = " +  this.getOrgStatus() + "\n");
		entityStirngBuffer.append("isDel = " +  this.getIsDel() + "\n");
		entityStirngBuffer.append("orgOrder = " +  this.getOrgOrder() + "\n");
		entityStirngBuffer.append("orgLevel = " +  this.getOrgLevel() + "\n");
		entityStirngBuffer.append("isParent = " +  this.getIsParent() + "\n");
		entityStirngBuffer.append("orgPid = " +  this.getOrgPid() + "\n");
		entityStirngBuffer.append("orgName = " +  this.getOrgName() + "\n");
		entityStirngBuffer.append("orgAliasName = " +  this.getOrgAliasName() + "\n");
		entityStirngBuffer.append("orgDesc = " +  this.getOrgDesc() + "\n");
		entityStirngBuffer.append("orgPhone = " +  this.getOrgPhone() + "\n");
		entityStirngBuffer.append("orgFax = " +  this.getOrgFax() + "\n");
		entityStirngBuffer.append("orgWebsite = " +  this.getOrgWebsite() + "\n");
		entityStirngBuffer.append("provinceId = " +  this.getProvinceId() + "\n");
		entityStirngBuffer.append("cityId = " +  this.getCityId() + "\n");
		entityStirngBuffer.append("districtId = " +  this.getDistrictId() + "\n");
		entityStirngBuffer.append("orgAddress = " +  this.getOrgAddress() + "\n");
		entityStirngBuffer.append("lng = " +  this.getLng() + "\n");
		entityStirngBuffer.append("lat = " +  this.getLat() + "\n");
		entityStirngBuffer.append("orgManagerId = " +  this.getOrgManagerId() + "\n");
		entityStirngBuffer.append("orgManagerName = " +  this.getOrgManagerName() + "\n");
		entityStirngBuffer.append("orgManagerPhone = " +  this.getOrgManagerPhone() + "\n");
		entityStirngBuffer.append("createTime = " +  this.getCreateTime() + "\n");
		entityStirngBuffer.append("updateTime = " +  this.getUpdateTime() + "\n");
		return entityStirngBuffer.toString();
	}
	
}